<template>
  <div class="footer">
    <ul>
      <!-- 订单 -->
      <li class="li1">
        <router-link to="/order">
          <div class="div1">
            <img class="none" src="../../assets/footer_img/order.png"alt="">
            <img class="img1" src="../../assets/footer_img/order1.png" alt="">
          </div>

          <p class="text1">账单</p>

        </router-link>
      </li>

      <!-- 车辆库 -->
      <li class="li2" >
        <router-link to="/carbank">
          <div class="div1">
            <img class="none" src="../../assets/footer_img/car.png"alt="">
            <img class="dis2" src="../../assets/footer_img/car1.png" alt="">
          </div>
          <p class="text2">车库</p>
        </router-link>
      </li>

      <!-- 下单 -->
      <li  class="li3" >
        <router-link to="/downorder">
          <div class="circlebox">
            <div class="circle">
              <div class="circlered">
                <p id="circletext">下单</p>
              </div>
            </div>
          </div>

        </router-link>
      </li>

      <!-- 收货地址 -->
      <li  class="li4" >
        <router-link to="/takesite">
          <div class="div1">
            <img class="none" src="../../assets/footer_img/chaxun.png"alt="">
            <img class="dis4" src="../../assets/footer_img/chaxun1.png" alt="">
          </div>
          <p class="text4">地址</p>
        </router-link>
      </li>

      <!-- 我的 -->
      <li  class="li4" >
        <router-link to="/my">
          <div class="div1">
            <img class="none" src="../../assets/footer_img/shebei.png"alt="">
            <img class="dis4" src="../../assets/footer_img/shebei1.png" alt="">
          </div>
          <p class="text4">我的</p>
        </router-link>
      </li>
    </ul>
  </div>
</template>
<script>

</script>
<style scoped>
  * {
    margin: 0;
    padding: 0;
  }

  .footer {
    background: white;
    border-top: 1px solid #D0D0D0;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3.5rem;
    z-index: 1000;
  }
  .footer ul {
    width: 100%;
    display: flex;
    bottom: 0;
  }
  .footer ul li {
    flex: 1;
    display: inline-block;
    font-size: 0.9rem;
    color: #666666;
    text-align: center;
    margin-bottom: 0.2rem;
    /*box-shadow:0px 0px 5px 0px gainsboro inset;*/
    position: relative;
  }
  .div1 {
    position: relative;
    top: 0;
    width: 100%;
  }


  .footer ul li .text1, .text2, .text3, .text4 {
    bottom: 0.9rem;
  }
  /* 下导航图片设置 */
  .footer ul li img {
    width: 1.45rem;
    height: 1.45rem;
    margin-top: 0.3rem;
    /*position: absolute;*/

  }

  .footer ul li .img1, .dis2, .dis3, .dis4 {
    position: absolute;
    left: 1.65rem;
    top: 0;
    display: none;
    width: 1.41rem !important;
    height: 1.43rem !important;
  }
  /* 中间的圆 */
  .circlebox {
    width: 100%;
    height: 100%;
    position: relative;
  }
  .circle {
    width: 4.7rem;
    height: 4.7rem;
    background: white;
    border: 1px solid gainsboro;
    border-radius: 50%;
    box-shadow: 0px 1px 1px gray;
    position: absolute;
    top: -1.65rem;
  }
  .circlered {
    width: 4.3rem;
    height: 4.3rem;
    margin: 0.2rem 0.2rem;
    background: #E63838;
    border-radius: 50%;
  }
  .circle p {
    line-height: 4.5rem;
    color: white;
    font-size: 0.9rem;
  }

  /*  下导航的点击样式  */
  .footer ul li a {
    color: #666666;
    text-decoration: none;
  }

  .router-link-active p {
    color: #c82913;
  }
  .router-link-active #circletext {
    color: black;
  }

  .router-link-active .img1 {
    display: block !important;

  }
  /*.router-link-active .none1 {*/
  /*display: none;*/
  /*}*/
  .router-link-active .dis2 {
    display: block;

  }
  .router-link-active .dis3 {
    display: block;
  }
  .router-link-active .dis4 {
    display: block;
  }
  /* .footer ul .li:active {

  } */
  .li1:active, .li2:active, .li3:active, .li4:active {
    background: gainsboro;
  }

  /* .router-link-active .none { */
  /*display: none;*/
  /* } */


</style>
